package com.HQCourse.vod.vod.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
//配置类
@Configuration
@MapperScan("com.HQCourse.vod.vod.mapper")
public class VodConfig {
    //分页插件
    @Bean
    public PaginationInterceptor  painationInterceptor(){
        return new PaginationInterceptor();
    }

}
